import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import '@/assets/scss/reset.scss'
import '@/assets/scss/index.scss'
import ElementUI from 'element-ui'
import VueCookies from 'vue-cookies'
import axios from 'axios'
import 'element-ui/lib/theme-chalk/index.css'
import 'element-ui/lib/theme-chalk/display.css';
import '@/assets/icon/iconfont.css'
import '@/assets/icon/iconfont.js'
import echarts from 'echarts'

//import { encrypt, decrypt} from "@/utils/jsencrypt.js"
import { parseTime,formatStr,checkPermission, formatRichText, appToLink, copyData,
   cutChineseString} from "@/utils/common.js"
import './permission'

//布局
/*import layout from '@/layout/user/default/Main.vue'
Vue.component('default-layout', layout)*/
import common_nav from '@/components/common/common_nav.vue'
Vue.component('common_nav', common_nav)
import Page from '@/components/common/Page.vue'
Vue.component('Page', Page)

Vue.use(VueCookies)
Vue.use(ElementUI)
Vue.prototype.$axios = axios
Vue.prototype.$echarts = echarts

Vue.config.productionTip = false
Vue.prototype.parseTime = parseTime
Vue.prototype.formatStr = formatStr
Vue.prototype.checkPermission = checkPermission
Vue.prototype.formatRichText = formatRichText
Vue.prototype.appToLink = appToLink
Vue.prototype.copyData = copyData
/*Vue.prototype.dataSizeCheckPlusData = dataSizeCheckPlusData*/
Vue.prototype.cutChineseString = cutChineseString

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
